﻿using NStandard;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpApplication.AppServices
{
    public class ApiResponse
    {
        public ApiResponse(string msg, bool state, object? dto)
        {
            Msg = msg;
            Dto = dto;
            State = state;
        }
        public ApiResponse(bool state, object? dto)
        {

            Dto = dto;
            State = state;
        }

        public string Msg { get; set; }
        public object? Dto { get; set; }
        public bool State { get; set; }
    }

    public class ApiResponsePage
    {
        public ApiResponsePage(string msg, bool state, object? dto,long? count,long? pagecount)
        {
            Msg = msg;
            Dto = dto;
            State = state;
            Count = count;
            PageCount= pagecount;
        }

        public string Msg { get; set; }
        public object? Dto { get; set; }
        public bool State { get; set; }
        public long? Count { get; set; }
        public long? PageCount { get; set; }
    }

    public class ApiResponseCustom
    {
        public ApiResponseCustom(string Result, string Message)
        {
            this.Result = Result;
            this.Message = Message;

        }

        public string Result { get; set; }
        public string Message { get; set; }

    }
    public class ApiResponseCustom2
    {
        public ApiResponseCustom2(int id, bool isSuccess, string message, object data, string messageData)
        {
            Id = id;
            IsSuccess = isSuccess;
            Message = message;
            Data = data;
            MessageData = messageData;
        }

        public int Id { get; set; }
        public bool IsSuccess { get; set; }
        public string Message { get; set; }
        public object Data { get; set; }
        public string MessageData { get; set; }
    }


}

